<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body onload="init()">
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="10000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			xlsFileName="用车记录表.xls"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|export|refresh"
			action="${ctx}/carLog/list">
			<ec:row style="text-align:center;">
				<ec:column property="serial" title="序号" style="width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="car_code" title="车牌号" >${v.car_no}</ec:column>
				<ec:column property="use_date" title="使用时间" style="width: 140px;">
					<fmt:formatDate value="${v.use_date}" pattern="yyyy-MM-dd HH:mm:ss" />
				</ec:column>
				<ec:column property="destination" title="目的地">${v.destination}</ec:column>
				<ec:column property="start_mileage" title="起始里程<br/>（单位：km）" style="width:120px;">${v.start_mileage}</ec:column>
				<ec:column property="return_date" title="还车时间" style="width: 140px;">
					<fmt:formatDate value="${v.return_date}" pattern="yyyy-MM-dd HH:mm:ss" />
				</ec:column>
				<ec:column property="return_addr" title="还车地">${v.return_addr}</ec:column>
				<ec:column property="end_mileage" title="结束里程<br/>（单位：km）" style="width:120px;">${v.end_mileage}</ec:column>
				<ec:column property="use_to" title="事由">${v.use_to}</ec:column>
				<ec:column property="driver" title="驾驶员">${v.driver}</ec:column>
				<ec:column property="other_user" title="陪同人">${v.other_user}</ec:column>
				<ec:column property="status" title="状态">
					<c:if test="${empty v.return_addr}">
						<span style="color: red;">使用中</span>
					</c:if>
					<c:if test="${not empty v.return_addr}">
						<span style="color: green;">已归还</span>
					</c:if>
				</ec:column>
				<ec:column property="remark" title="备注" style="text-align:left;">${v.remark}</ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>